<?xml version="1.0" encoding="utf-8"?>
<openerp>
	<data>

<!--Purchase Inherit-->

		<record id="view_stock_enter_transfer_details_applico" model="ir.ui.view">
			<field name="name">Enter transfer details</field>
			<field name="model">stock.transfer_details</field>
			<field name="inherit_id" ref="stock.view_stock_enter_transfer_details"/>
			<field name="arch" type="xml">
				<field name="item_ids" position="replace">
					<field name="item_ids"
						context="{'default_sourceloc_id':picking_source_location_id,
						'default_destinationloc_id':picking_destination_location_id}" nolabel="1">
						<tree string="Inventory Details" editable="bottom" create="false">
							<field name="package_id" groups="stock.group_tracking_lot"/>
							<field name="product_id" required="True" readonly="1" context="{'uom':product_uom_id}" on_change="product_id_change(product_id,product_uom_id,context)"/>
							<field name="quantity"/> 
							<button name="split_quantities" string="Split" type="object" icon="STOCK_PREFERENCES" invisible="1"/>
							<field name="product_uom_id" options="{&quot;no_open&quot;: True}" groups="product.group_uom"/>
							<field name="sourceloc_id" domain="[('id', 'child_of', parent.picking_source_location_id)]" groups="stock.group_stock_multiple_locations"/>
							<field name="destinationloc_id" domain="[('id', 'child_of', parent.picking_destination_location_id)]" groups="stock.group_stock_multiple_locations"/>
							<field name="result_package_id" groups="stock.group_tracking_lot" context="{'location_id': destinationloc_id}"/>
							<button name="put_in_pack" string="Pack" type="object" icon="terp-product" attrs="{'invisible': [('result_package_id', '!=', False)]}" groups="stock.group_tracking_lot"/>
							<field name="lot_id" groups="stock.group_production_lot" domain="[('product_id','=?', product_id)]" context="{'product_id': product_id}"/>
						</tree>
					</field>
				</field>

			</field>
		</record>
	</data>
</openerp>
